using System;
using System.Collections.Generic;
using System.Text;
using MoEngine;
using MoGameLib;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MoGame
{
    public class WindowWorldView : Window
    {
        protected WindowGameMap m_WindowMap;
        protected WindowBattle m_WindowBattle;

        public WindowBattle WindowBattle
        {
            get { return m_WindowBattle; }
        }

        public WindowWorldView(WindowBase parent)
            : base(parent)
        {
            m_WindowMap = new WindowGameMap(this);
            m_WindowMap.Layout.SetLeft(0, 250);
            m_WindowMap.Board = MoCore.World.CurrentMap.Board;


            ImagePanel leftPanelBack = new ImagePanel(this, Core.Content.Load<Texture2D>("Images/GUI/LeftPanelBack"));
            WindowTileSites windowSites = new WindowTileSites(this);
            windowSites.Layout.SetRight(0, 240);
            windowSites.TileViewing = MoCore.World.CurrentMap.GetTile(6, 3);

            m_WindowBattle = new WindowBattle(this, MoCore.BattleManager.CurrentBattle);
            MoCore.BattleManager.CurrentBattle.BattleWindow = m_WindowBattle;
            //m_WindowBattle.Layout.SetLeft(0, 0);
            //m_WindowBattle.Layout.SetTop(0, 0);
            //m_WindowBattle.Layout.SetRight(1.0f, 0);
            //m_WindowBattle.Layout.SetBottom(1.0f, 0);

            //m_WindowBattle.Board = MoCore.BattleManager.CurrentMap;
        }
    }
}
